import App from "./App";
import store from "./store";
import uView from "@/uni_modules/uview-ui";
import api from "./static/js/api";
import upload from "./static/js/upload";
import request from "./static/js/request";
import util from "./static/js/util.js";
import minxin from "./minxin/index.js";
// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
Vue.mixin(minxin);
Vue.prototype.$api = api;
Vue.prototype.$store = store;
Vue.prototype.$upload = upload;
Vue.prototype.$request = request;
Vue.prototype.$showToast = util.showToast;
Vue.use(uView);
const app = new Vue({
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
  const app = createSSRApp(App);
  return {
    app,
  };
}
// #endif
